package com.project.bean;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * 用户实体类
 */
public class Employee {
    //编号
    private int id;
    //姓名

    private String name;
    //电话
    private String phone;
    //工资
    private Integer money;
    //头像
    private  String imgPath;
    //员工状态
    private String status="在职";

    public Employee() {
    }

    public Employee(String name, String phone, Integer money, String imgPath) {
        this.name = name;
        this.phone = phone;
        this.money = money;
        this.imgPath = imgPath;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Integer getMoney() {
        return money;
    }

    public void setMoney(Integer money) {
        this.money = money;
    }

    public String getImgPath() {
        return imgPath;
    }

    public void setImgPath(String imgPath) {
        this.imgPath = imgPath;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "Employee{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", phone='" + phone + '\'' +
                ", money=" + money +
                ", imgPath='" + imgPath + '\'' +
                ", status='" + status + '\'' +
                '}';
    }
}
